package com.example.hallserver.error;

import com.example.common.User;
import com.example.hallserver.UserClient;
import org.springframework.stereotype.Component;

/**
 * Created on 2020/2/18.
 *
 * @author Grak
 * @since 1.0
 */
@Component
public class UserClientError implements UserClient {
    @Override
    public String getUser() {
        return "服务发生故障！";
    }

    @Override
    public User getUserOnly() {
        return new User();
    }
}
